package adv5;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class Yuandan {

	public static void main(String[] args) {
		// 下一个元旦节（1月1号）是周几
		Calendar a = Calendar.getInstance();
		SimpleDateFormat df = new SimpleDateFormat("E");
		a.add(Calendar.YEAR, 1);
		a.set(Calendar.MONTH, Calendar.JANUARY);
		a.set(Calendar.DATE, 1);
		int wd = a.get(Calendar.DAY_OF_WEEK);
		System.out.println(wd);
		System.out.println(df.format(a.getTime()));
		// switch (wd) {
		// case 1:
		// System.out.println("周日");
		// break;
		// }
	}

}
